package com.kws.system.api;

import com.kws.common.core.constant.SecurityConstants;
import com.kws.common.core.constant.ServiceNameConstants;
import com.kws.common.core.domain.R;
import com.kws.system.api.domain.SysFile;
import com.kws.system.api.factory.RemoteFileFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;


/**
 * 角色
 *
 * @author yxy
 * @since 2024-10-22 10:14:03
 */
@FeignClient(contextId = "remoteRoleService", value = ServiceNameConstants.SYSTEM_SERVICE)
public interface RemoteRoleService
{
    /**
     * 获取角色列表
     */
    @PostMapping(value = "/getRoleList", consumes = SecurityConstants.FROM_SOURCE)
    public R<SysFile> upload(@RequestPart(value = "file") MultipartFile file);
}
